// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App.vue'
import store from './store/store.js'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import './plugins/axios'
import router from './router'


Vue.config.productionTip = false
Vue.use(Element)


router.beforeEach((to,from,next)=>{
    if(to.meta.title){
        document.title = to.meta.title
    }
    next()
})

new Vue({
    router,
    store,

    render:h => h(App)
}).$mount('#app')
